<template>
    <div class="title">
        <p>
            <span class="left-text">
                <slot name="left-title"></slot>
            </span>
            <span class="right-text">
                <slot name="right-more"></slot>
            </span>
        </p>
    </div>
</template>

<script>
export default {
    name: "Title"
}
</script>

<style lang="scss" scoped>
.title{
    display: flex;
    justify-content: center;
    p{
        width: 340px;
        height: 50px;
        text-align: center;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 40px 0 30px 0;
        box-sizing: border-box;
        .left-text{
            font-size: 18px;
            // font-weight: bold;
        }
        .right-text{
            font-size: 14px;
            color: #999;
        }
    }
}
</style>